<?php
	class Country_Model extends CI_Model {
		function __construct()
		{
			parent::__construct();	
		}
		
		function lists()
                {
			$this->db->order_by("PROVINCE_NAME", "ASC");
			$this->db->from('province');
			$query = $this->db->get();
			return $query->result();
                }
		
		function getCountryNameByCatId($id)
		{
			//$query = $this->getCatInfoByCatId($id);
			//return $query['name_th'];
			return 'Thailand';
		}
		
		function getCountryInfoByCatId($id)
		{
			//$query = $this->db->get_where('categories', array('id' => $id));
			//return $query->row_array();
		}
	}


/* End of file Country_Model.php */
/* Location: ./application/models/admin/Country_Model.php */